package com.example.testrxjava.register;

import java.util.Map;

import retrofit2.http.FieldMap;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;
import retrofit2.http.QueryMap;
import rx.Observable;

/**
 * 项目名称：TestRxjava
 *
 * @Author 郭迎辉
 * Create by 13:47 on 2019/4/17.
 * Describe:
 */
public interface RegisterApi {
    /**
     * 参数
     * username
     * password
     * repassword
     * */
    @FormUrlEncoded
    @POST("user/register")
    Observable<RegisterBean> register(@FieldMap Map<String,String> map);//使用QueryMap来拼接
    //相当于https://www.wanandroid.com/user/register?username=xxx&password=xxx&repassword=xxx
}
